<script type="text/javascript" src="js/ddm.js"></script>

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<table width="100%">
	<tr>
		<td>
			<div class="blue-text16" style="margin: 0px 0px 0px 0px">
				<table>
					<tr>
						<td class="heding" align="left">
							My favorite users
						</td>

						<td class="heding" align="right">
							<table width="100%" align="right">
								<tr>
									<td >
									<div style="margin:0px 8px 0px 0px">
				                              <table border="0" cellspacing="0" cellpadding="0">
				                                <tr>
				                                  <td><img src="images/top/btn-grey-left.gif" alt=" " width="6" height="23" /></td>
				                                  <td class="btn-grey-middle "><div style="margin:0px 5px 6px 5px">
				                                <a href="addToFavoriteUsers.htm" class="btn-grey-link">Add to
												favorite users </a></div></td>
				                                  <td><img src="images/top/btn-grey-right.gif" alt=" " width="6" height="23" /></td>
				                                </tr>
				                              </table>
				                            </div>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</div>
			<div class="header-separator-bg" style="margin: 10px 5px 17px 0px"></div>
			<div style="margin: 0px 0px 12px 0px">

				<s:form action="deleteFavoriteUser" theme="simple">

					<table border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody>
							<tr>
								<td width="100%">
									<table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody>
											<display:table name="list" pagesize="10"
												requestURI="favoriteUsers.htm" id="row" >
												<display:column title="#" class="grid-bg common-text" headerClass="grid-header-bg grid-header-text-link">
													<s:checkbox name="selectedCategory" theme="simple"
														fieldValue="%{#attr.row.id}" />
												</display:column>
												<display:column value="${row.userIdFav.userId}"  class="grid-bg common-text" headerClass="grid-header-bg grid-header-text-link"
													title="Users" href="#" autolink="true" />
												<display:column title="Added"  class="grid-bg common-text" headerClass="grid-header-bg grid-header-text-link">
													<s:date name="%{#attr.row.date}"
														format="%{#attr.user.dateFormat.format}" />
												</display:column>
												<display:column class="grid-bg common-text" title="Option" headerClass="grid-header-bg grid-header-text-link">
														<a class="mddm" href="#" onmouseover="mopen('<s:property value="%{#attr.row.id}"/>', this, 'right', 1)"
															onmouseout="mclosetime()">Select</a>
														<div style="left: 864px; visibility: hidden;" id="<s:property value="%{#attr.row.id}"/>"
															onmouseover="mcancelclosetime()"
															onmouseout="mclosetime()">
															<s:a href="addFavoriteUsers.htm?userFavoritesUsers.id=%{#attr.row.id}">Edit</s:a>
															<a href="#">View sellers other items</a>
															<a href="#">Contact</a>
															<a href="#">Company profiles</a>
															<a href="#">Items wanted</a>
															<a href="#">View sellers shop</a>
															<a href="#">Advertisements</a>
															<a href="#">Feedback</a>
														</div>

												</display:column>
												<display:column title="Note" class="grid-bg common-text" headerClass="grid-header-bg grid-header-text-link">
													<c:out value="${row.note}"></c:out>
												</display:column>
											</display:table>
											<tr>
												<td width="100%">
													<table border="0" cellspacing="0" cellpadding="0">
														<tr>
															<td>
																<img src="images/middle/btn-grey-left1.gif" alt=" "
																	width="6" height="23" />
															</td>
															<td class="btn-grey-middle1 ">
																<s:submit name="delete" value="delete" align="left"
																	theme="simple" cssClass="submit-btn-common" disabled="true"/>
															</td>
															<td>
																<img src="images/middle/btn-grey-right1.gif" alt=" "
																	width="6" height="23" />
															</td>
														</tr>
													</table>
												</td>
											</tr>
										</tbody>
									</table>
						</tbody>
					</table>
				</s:form>